package com.gzbugu.bugusys.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gzbugu.bugusys.dao.IBaseDAO;
import com.gzbugu.bugusys.vo.Staff;

@Service
public class CheckStaffService {

	@Resource(name = "baseDAO")
	private IBaseDAO baseDAO;

	public boolean isExist(String staffId) {
		if (staffId == null || staffId.trim().length() == 0)
			return false;
		Staff staff = (Staff) baseDAO.findById(staffId.trim(),
				com.gzbugu.bugusys.fields.VoClasseFields.STAFF);
		if (staff != null)
			return true;
		return false;
	}
}
